import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/getuserinfo',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

//获取验证码请求
export function getyzm(id, role) {
  return request({
    url: '/updatepwd',
    method: 'get',
    params: {
      id : id,
      role : role
    }
  })

}

//修改密码请求
export function newpass(yzm, id, role, pass) {
  return request({
    url: '/checkyzm',
    method: 'get',
    params: {
      yzm : yzm,
      id : id,
      role : role,
      pass : pass
    }

  })
}

//提交反馈请求 /feedback
export function feedback(fknr) {
  return request({
    url: '/feedback',
    method: 'get',
    params: {
      fknr : fknr
    }
  })

}
